# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :user_fields.py
# @Time      :2022/6/8 22:25
# @Author    :张志坤

from flask_restful import fields

channel_fields = {
    "cid": fields.Integer,
    "cname": fields.String,
    "ctime": fields.DateTime,
    "is_visible": fields.Integer,
}

news_fields = {
    'nid': fields.Integer,
    'title': fields.String,
    'cover': fields.String,
    'ctime': fields.DateTime,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'content': fields.String,
    'is_collection': fields.Integer,
    "profile_photo": fields.String
}

user_fields = {
    'uid': fields.Integer,
    'profile_photo': fields.String,
    'created_time': fields.DateTime,
    'gender': fields.Integer,
    'uname': fields.String

}

common_fields = {
    'cmid': fields.Integer,
    'like_count': fields.Integer,
    'reply_count': fields.Integer,
    'content': fields.String,
    'ctime': fields.DateTime,
    'profile_photo': fields.String,
}
